import java.util.*;
import java.io.*;

public class main {

    public static void main(String[] args) throws IOException {
        Read in = new Read();
        int n = in.nextInt(),k = in.nextInt();
        int[] ret = new int[n + 1];
        for(int i = 1;i < n;i++) {
            ret[i] = in.nextInt();
        }

        FindNum(ret,k);

    }


    public static void FindNum(int[] nums,int k) {
        int left = 1,right = 1,minLen = 0x3f3f3f3f;
        int min_l = 0,min_r = 0,sum = 0;
        int n = nums.length;
        for(;right < n;right++) {
            sum += nums[right];
            while(sum >= k) {
                if(right - left + 1 < minLen) {
                    minLen = right - left + 1;
                    min_l = left;
                    min_r = right;
                }
                sum -= nums[left++];
            }
        }

        System.out.println(min_l + " " +min_r);
    }

}

class Read // 自定义快速读入
{
    StringTokenizer st = new StringTokenizer("");
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    String next() throws IOException
    {
        while(!st.hasMoreTokens())
        {
            st = new StringTokenizer(bf.readLine());
        }
        return st.nextToken();
    }

    String nextLine() throws IOException
    {
        return bf.readLine();
    }

    int nextInt() throws IOException
    {
        return Integer.parseInt(next());
    }

    long nextLong() throws IOException
    {
        return Long.parseLong(next());
    }

    double nextDouble() throws IOException
    {
        return Double.parseDouble(next());
    }
}